package com.nodecollege.cloud.common.exception;

import com.nodecollege.cloud.common.enums.ErrorEnum;
import com.nodecollege.cloud.common.enums.UpmsErrEnum;

public class UpmsException extends BaseException {
    private static final long serialVersionUID = 8912473097017237022L;

    public UpmsException() {
        super();
    }

    public UpmsException(String errorCode, String errorMsg) {
        super(errorCode, errorMsg);
    }

    public UpmsException(UpmsErrEnum error) {
        super(error.getCode(), error.getMessage());
    }

    public UpmsException(ErrorEnum errorEnum){
        super(errorEnum);
    }

    public UpmsException(UpmsErrEnum error, String description) {
        super(error.getCode(), error.getMessage(), description);
    }
}